public class Node
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
identifier
The string representing the node's unique name.
|
| Constructor and Description |
|---|
Node(java.lang.String identifier)
Initializes the Node object.
|
| Modifier and Type | Method and Description |
|---|---|
Node |
duplicate()
Returns a copy of this Node that is a new object in memory.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getIdentifier()
Access method for the Node's identifier.
|
int |
hashCode() |
java.lang.String |
toString() |
private final java.lang.String identifier
public Node(java.lang.String identifier)
identifier - the String representing the Node's identifier.public java.lang.String getIdentifier()
public Node duplicate()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object